<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['content']) && (($_SESSION['content']&1<<2) == 0))) {
	$this->_redirect(isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND);
}
$intContentId = $objRequest->getParam('contentid', 0);
$objContent	  = new Content();
$this->view->row	= $objContent->get($intContentId);
$this->view->back	= isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : (HOST_BACKEND . 'content/index');